package com.wwl.service;

import com.wwl.dao.PayMapper;
import com.wwl.entity.Pay;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class PayService
{
  @Resource
  PayMapper payMapper;
  
  public int insert(Pay pay)
  {
    return this.payMapper.insertSelective(pay);
  }
  
  public List<Pay> sumN(Pay pay)
  {
    return this.payMapper.sumN(pay);
  }
  
  public List<Pay> showAll()
  {
    return this.payMapper.showAll();
  }
  
  public List<Pay> selectCount(String openid)
  {
    return this.payMapper.selectCount(openid);
  }
}
